<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html class=" js csstransforms3d"><head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>约健后台管理系统</title>
	<meta name="keywords" content="简洁,扁平化,CMS网站,后台管理,管理系统,网站模板,全套下载" />
	<meta name="description" content="简洁扁平化CMS网站后台管理系统网站模板全套下载，完整版全套网站模板下载，下载文件包含43张静态网页。" />
	<link rel="stylesheet" href="/yuejian/Public/css/base.css">
	<link rel="stylesheet" href="/yuejian/Public/css/page.css">
	<script type="text/javascript" src="/yuejian/Public/js/jquery.min.js"></script>
	<script type="text/javascript" src="/yuejian/Public/js/modernizr.js"></script>
	<script type="text/javascript" src="/yuejian/Public/js/main.js"></script>
	<script type="text/javascript" src="/yuejian/Public/js/jquery.selectui.js"></script>
	<script type="text/javascript" charset="utf-8" src="/yuejian/Public/js/utf8-jsp/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/yuejian/Public/js/utf8-jsp/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/yuejian/Public/js/utf8-jsp/lang/zh-cn/zh-cn.js"></script>
	
	<link rel="stylesheet" type="text/css" href="/yuejian/Public/js/webuploader/webuploader.css">    
    <link rel="stylesheet" type="text/css" href="/yuejian/Public/js/webuploader/demo.css">
	
	<script>
	$(function($) {
		$("select").selectui({
			// 是否自动计算宽度
			autoWidth: true,
			// 是否启用定时器刷新文本和宽度
			interval: true
		});
	});
	</script>
	<!--[if IE]>
	<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
	<![endif]-->
<link href="/yuejian/Public/js/utf8-jsp/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
<script src="/yuejian/Public/js/utf8-jsp/third-party/codemirror/codemirror.js" type="text/javascript" defer></script>
<link rel="stylesheet" type="text/css" href="/yuejian/Public/js/utf8-jsp/third-party/codemirror/codemirror.css">
<script src="/yuejian/Public/js/utf8-jsp/third-party/zeroclipboard/ZeroClipboard.js" type="text/javascript" defer></script>



</head>

<body>
<div class="superWrap clearfix" style="height: 781px;">
	<!--side S-->
	<div class="super-side-menu" width="205" height="100%" marginheight="0" marginwidth="0" frameborder="0" scrolling="no">
	<div class="super-side-menu">
		<div class="logo"><a href="" target="_parent"><img src="/yuejian/Public/images/logo.png"></a></div>
		
		<div class="side-menu">
			<ul>
				<li class=""><a href="<?php echo U('Game/gamelist');?>" target="Mainindex"><i class="ico-1"></i>比赛管理</a></li>
				<li><a href="" target="Mainindex"><i class="ico-2"></i>活动管理</a></li>
				<li class="on"><a href="<?php echo U('Training/traininglist');?>" target="Mainindex"><i class="ico-3"></i>培训管理</a></li>
				<li><a href="<?php echo U('Photo/photolist');?>" target="Mainindex"><i class="ico-4"></i>晒图管理</a></li>
				<li><a href="" target="Mainindex"><i class="ico-5"></i>评论管理</a></li>
				<li><a href="" target="Mainindex"><i class="ico-6"></i>用户管理</a></li>
			</ul>
		</div>
	</div>
	</div>
	<!--side E-->
	<!--content S-->
	<div class="superContent">
		
		<div class="super-header super-header2" id="Pubheader" name="Pubheader" width="100%"  marginheight="0" marginwidth="0" frameborder="0" scrolling="no">
		<div class="super-header clearfix">
	<h2>约健后台管理系统</h2>
	<div class="head-right">
		<i class="ico-user"></i>当前用户：
		<div class="userslideDown">
			<a href="javascript:;" class="superUser">Admin<i class="ico-tri"></i></a>
			<div class="slidedownBox">
				<ul>
					<li><a href="change_psw.html" target="Mainindex">修改密码</a></li>
					<li><a href="loginb.html" target="_parent">退出</a></li>
				</ul>
			</div>
		</div>
	</div>
</div>
		</div>
		<!--header-->


		<div class="superCtab superCtabBot" style="height: 695px;" id="Mainindex" name="Mainindex" width="100%" height="100%" marginheight="0" marginwidth="0" frameborder="0">
		<div class="super-content RightMain" id="RightMain">
		
		<!--header-->
			<!--content S-->
	<div class="super-content">
		
		<div class="superCtab">
			<div class="publishArt">
				<h4>修改比赛</h4>
				<div class="pubMain">
					<a href="<?php echo U('Game/gamelist');?>" class="backlistBtn"><i class="ico-back"></i>返回列表</a>
					<!-- <form class="form-horizontal" action="<?php echo U(editgame);?>" onsubmit="return check();"  method="post" enctype="multipart/form-data">
					<table id="games">
						<input  type="hidden"  name="game_id" value="<?php echo ($list["game_id"]); ?>">
						<h5 class="pubtitle">比赛名称</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="game_name" name="game_name" value="<?php echo ($list["game_name"]); ?>">
						</div>
						<h5 class="pubtitle">缩略图</h5>
						<div class="fileupload fileupload-new" data-provides="fileupload">
                   			<input id="game_picture" type="hidden" value="<?php echo ($list["game_picture"]); ?>" name="pic" >
                          		<div class="fileupload-new img-thumbnail" style="width: 110px; height: 110px;background-color:#5f5f5f">
                              		<img src="/yuejian/Public/upload/gamepic/<?php echo ($list["game_picture"]); ?>" width="90">
                          		</div>
                          	<div class="fileupload-preview fileupload-exists img-thumbnail" style="width: 110px; max-height: 110px;">
                          		<input type="file" name="file" value="<?php echo ($list["game_picture"]); ?>">
                          	</div>
                               
                      	</div>

						<h5 class="pubtitle">链接</h5>
						<div class="pub-txt-bar">
							<input id="game_address" name="game_address" type="text" class="shuruTxt" value="<?php echo ($list["game_address"]); ?>"}" " placeholder="http://">
						</div>
					</table>
					
						

						<div class="pub-btn">
							<input type="submit" id="" value="发布" class="saveBtn">
						</div>

					</form> -->
					<form class="form-horizontal" action="<?php echo U(doUpdate);?>" onsubmit="return check();"  method="post" enctype="multipart/form-data">
					<table id="trainings">
					<tr>
            <input  type="hidden" id="training_id" name="training_id" value="<?php echo ($list["training_id"]); ?>">
            </tr>
						<h5 class="pubtitle">培训名称</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="training_name" name="training_name" value="<?php echo ($list["training_name"]); ?>">
						</div>
						<h5 class="pubtitle">培训时间</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="training_time" name="training_time" value="<?php echo ($list["training_time"]); ?>">
						</div>
						<h5 class="pubtitle">培训地址</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="training_address" name="training_address" value="<?php echo ($list["training_address"]); ?>">
						</div>
						<h5 class="pubtitle">培训介绍</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="training_intro" name="training_intro" value="<?php echo ($list["training_intro"]); ?>">
						</div>
						<h5 class="pubtitle">培训须知</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="training_note" name="training_note" value="<?php echo ($list["training_note"]); ?>">
						</div>
						<h5 class="pubtitle">培训价格</h5>
						<div class="pub-txt-bar">
							<input type="text" class="shuruTxt" id="training_price" name="training_price" value="<?php echo ($list["training_price"]); ?>">
						</div>
						<h5 class="pubtitle">培训图片</h5>
						<div class="pub-txt-bar">
								<input id="file" type="file" size="30" name="file" multiple value="<?php echo ($list["training_picture"]); ?>">
								<!-- <a href="javascript:;" class="Thumbbtn"><i class="ico-download"></i>上传图片</a> -->
						</div>
						<div class="pub-btn">
							<input type="submit" id="" value="提交" class="saveBtn">
						</div>

					</form>

				</div>
			</div>
		
		</div>
		<!--main-->
		
	</div>
	<!--content E-->
	<!--点击修改弹出层-->
	<div class="layuiBg"></div><!--公共遮罩-->
	<!--点击添加标签弹出-->

	

<script type="text/javascript">
// 添加全局站点信息
var BASE_URL = '/webuploader';
</script>
<!--引入JS-->
<script type="text/javascript" src="/yuejian/Public/js/webuploader/webuploader.js"></script>
<script type="text/javascript" src="/yuejian/Public/js/webuploader/demo.js"></script>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');


    function isFocus(e){
        alert(UE.getEditor('editor').isFocus());
        UE.dom.domUtils.preventDefault(e)
    }
    function setblur(e){
        UE.getEditor('editor').blur();
        UE.dom.domUtils.preventDefault(e)
    }
    function insertHtml() {
        var value = prompt('插入html代码', '');
        UE.getEditor('editor').execCommand('insertHtml', value)
    }
    function createEditor() {
        enableBtn();
        UE.getEditor('editor');
    }
    function getAllHtml() {
        alert(UE.getEditor('editor').getAllHtml())
    }
    function getContent() {
        var arr = [];
        arr.push("使用editor.getContent()方法可以获得编辑器的内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('editor').getContent());
        alert(arr.join("\n"));
    }
    function getPlainTxt() {
        var arr = [];
        arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('editor').getPlainTxt());
        alert(arr.join('\n'))
    }
    function setContent(isAppendTo) {
        var arr = [];
        arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
        UE.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
        alert(arr.join("\n"));
    }
    function setDisabled() {
        UE.getEditor('editor').setDisabled('fullscreen');
        disableBtn("enable");
    }

    function setEnabled() {
        UE.getEditor('editor').setEnabled();
        enableBtn();
    }

    function getText() {
        //当你点击按钮时编辑区域已经失去了焦点，如果直接用getText将不会得到内容，所以要在选回来，然后取得内容
        var range = UE.getEditor('editor').selection.getRange();
        range.select();
        var txt = UE.getEditor('editor').selection.getText();
        alert(txt)
    }

    function getContentTxt() {
        var arr = [];
        arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
        arr.push("编辑器的纯文本内容为：");
        arr.push(UE.getEditor('editor').getContentTxt());
        alert(arr.join("\n"));
    }
    function hasContent() {
        var arr = [];
        arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
        arr.push("判断结果为：");
        arr.push(UE.getEditor('editor').hasContents());
        alert(arr.join("\n"));
    }
    function setFocus() {
        UE.getEditor('editor').focus();
    }
    function deleteEditor() {
        disableBtn();
        UE.getEditor('editor').destroy();
    }
    function disableBtn(str) {
        var div = document.getElementById('btns');
        var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
        for (var i = 0, btn; btn = btns[i++];) {
            if (btn.id == str) {
                UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
            } else {
                btn.setAttribute("disabled", "true");
            }
        }
    }
    function enableBtn() {
        var div = document.getElementById('btns');
        var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
        for (var i = 0, btn; btn = btns[i++];) {
            UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
        }
    }

    function getLocalData () {
        alert(UE.getEditor('editor').execCommand( "getlocaldata" ));
    }

    function clearLocalData () {
        UE.getEditor('editor').execCommand( "clearlocaldata" );
        alert("已清空草稿箱")
    }
    
</script>

<!--<script type="text/javascript" src="js/zxxFile.js" ></script>
<script>
var params = {
	fileInput: $("#fileImage").get(0),
	upButton: $("#fileSubmit").get(0),
	url: $("#uploadForm").attr("action"),
	filter: function(files) {
		var arrFiles = [];
		for (var i = 0, file; file = files[i]; i++) {
			if (file.type.indexOf("image") == 0) {
				if (file.size >= 512000) {
					alert('您这张"'+ file.name +'"图片大小过大，应小于500k');	
				} else {
					arrFiles.push(file);	
				}			
			} else {
				alert('文件"' + file.name + '"不是图片。');	
			}
		}
		return arrFiles;
	},
	onSelect: function(files) {
		var html = '', i = 0;
		$("#preview").html('<div class="upload_loading"></div>');
		var funAppendImage = function() {
			file = files[i];
			if (file) {
				var reader = new FileReader()
				reader.onload = function(e) {
					html = html +'<div class="Thumb_li"><div class="bg"><a href="javascript:" class="Thumb_delete" title="删除" data-index="'+ i +'">删除</a></div>' +
						'<img id="uploadImage_' + i + '" src="' + e.target.result + '" class="upload_image" />'+ 
					'</div>';
					
					i++;
					funAppendImage();
					$('.Thumb_li').hover(function(){
				    	$(this).children('.bg').fadeIn();
				    },function(){
				    	$(this).children('.bg').fadeOut();
				    });
				    $(".Thumb_delete").click(function(){
				    	$(this).parent().parent('.Thumb_li').remove();
				    });
				}
				reader.readAsDataURL(file);
			} else {
				$("#preview").html(html);
				if (html) {
					//删除方法
					$(".Thumb_delete").click(function() {
						ZXXFILE.funDeleteFile(files[parseInt($(this).attr("data-index"))]);
						return false;	
					});
					//提交按钮显示
					$("#fileSubmit").show();	
				} else {
					//提交按钮隐藏
					$("#fileSubmit").hide();	
				}
			}
		};
		funAppendImage();		
	},
	onDelete: function(file) {
		$("#uploadList_" + file.index).fadeOut();
	},
	onDragOver: function() {
		$(this).addClass("upload_drag_hover");
	},
	onDragLeave: function() {
		$(this).removeClass("upload_drag_hover");
	},
	onProgress: function(file, loaded, total) {
		var eleProgress = $("#uploadProgress_" + file.index), percent = (loaded / total * 100).toFixed(2) + '%';
		eleProgress.show().html(percent);
	},
	onSuccess: function(file, response) {
		$("#uploadInf").append("<p>上传成功，图片地址是：" + response + "</p>");
	},
	onFailure: function(file) {
		$("#uploadInf").append("<p>图片" + file.name + "上传失败！</p>");	
		$("#uploadImage_" + file.index).css("opacity", 0.2);
	},
	onComplete: function() {
		//提交按钮隐藏
		$("#fileSubmit").hide();
		//file控件value置空
		$("#fileImage").val("");
		$("#uploadInf").append("<p>当前图片全部上传完毕，可继续添加上传。</p>");
	}
};
ZXXFILE = $.extend(ZXXFILE, params);
ZXXFILE.init();
</script>-->







		<!--main-->
		
	</div>
		</div>
		<!--main-->
		
	</div>
	<!--content E-->
	
</div>

<script>
// window.onresize = function(){
// 	var winH=$(window).height();
// 	var headH=$('.super-header').height();
// 	$('.superWrap').height(winH);
// 	$('.superCtabBot').height(winH-headH);
// };
// $(window).resize();
</script>

</body></html>